package org.jetlinks.community.device.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name="s_demo")
@EnableEntityEvent
public class DemoEntity extends GenericEntity<String>{

    private static final long serialVersionUID = 1L;


    public String getId() {
        return super.getId();
    }

    /**
     * 标题
     */
    @Column
    @Schema(description = "标题")
    private String title;

    /**
     * 内容
     */
    @Column
    @Schema(description  = "内容")
    private String content;

    /**

     * 时间
     */
    @Column
    @Schema(description = "时间")
    private Date date;

}
